package com.guoyansoft.model.pojo;

/**
 * @author 朱文静
 * 商品实体
 */
public class Goods {
    private Integer id;
    //商品名称
    private String name;
    //商品进价
    private Double costPrice;
    //商品售价
    private Double salePrice;

    //    商品类型实体
    private GoodsType goodsType;
    //    店铺实体
    private Shop shop;
    private Integer num;

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Goods() {
    }

    public Goods(Integer id, String name, Double costPrice, Double salePrice, GoodsType goodsType, Shop shop, Integer num) {
        this.id = id;
        this.name = name;
        this.costPrice = costPrice;
        this.salePrice = salePrice;
        this.goodsType = goodsType;
        this.shop = shop;
        this.num = num;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(Double costPrice) {
        this.costPrice = costPrice;
    }

    public Double getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(Double salePrice) {
        this.salePrice = salePrice;
    }

    public GoodsType getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(GoodsType goodsType) {
        this.goodsType = goodsType;
    }

    public Shop getShop() {
        return shop;
    }

    public void setShop(Shop shop) {
        this.shop = shop;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", costPrice=" + costPrice +
                ", salePrice=" + salePrice +
                ", goodsType=" + goodsType +
                ", shop=" + shop +
                ", num=" + num +
                '}';
    }
}
